package com.vip.mvc.server;

import com.vip.mvc.dispacher.MyDispacher;
import com.vip.mvc.netty.NettyHttpBootstrap;

/**
 * Created by cloudy.xie on 17/2/14.
 */
public class HttpServer {

    private static final int port = 10001;
    public static void main(String[] args) {
        try {
            MyDispacher.getInstance().init();

            NettyHttpBootstrap bootstrap = new NettyHttpBootstrap();
            bootstrap.setPort(port);
            bootstrap.connect();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
        }
    }
}
